<template>
	<div id="app">
		<router-view :openId='openId' :storeId="storeId"></router-view>
	</div>
</template>

<script>
	export default {
	  	name: 'app',
	  	data () {
	  		return {
	  			openId: '',
	  			storeId: '',
	  		}
	  	},
	  	methods: {

	  	},
	  	created () {
	  		let searchArr = window.location.search.slice(1).split('&');
	  		let searchObj = {};
	  		for (var i = 0; i < searchArr.length; i++) {
	  			searchObj[searchArr[i].split('=')[0]] = searchArr[i].split('=')[1];
	  		}
	  		this.storeId = searchObj.storeId;
			this.openId = searchObj.openId;
			// console.log(this.storeId);  
	  	}
	}
</script>
<style lang="scss">
	#app {
		// width: 100%;
		// height: 100%;
	}
</style>
